package com.yzh.springboot_rbac.service;

import com.yzh.springboot_rbac.entity.Menu;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MenuService {
    /*1.查询所有菜单，以树形结构展示*/
    List<Menu> selectAllMenu();

    /*2.添加菜单*/
    Boolean isAddMenu(Menu menu);

    /*3.查询菜单通过条件*/
    List<Menu> selectMenuByCondition(Menu menu);

    /*4.删除菜单*/
    Boolean deleteMenu(Menu menu);

    /*5.更新菜单*/
    Boolean isUpdateMenu(Menu menu);
}
